package skdemo;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
public class SKDemo {
    public static void main(String[] args) throws Exception{
        SKDemo abc=new SKDemo();
        abc.run();
    }
    public void run() throws Exception
    {
        ServerSocket Server = new ServerSocket(1993);
        Socket client = Server.accept();
        InputStreamReader Vao = new InputStreamReader(client.getInputStream());
        BufferedReader Bvao = new BufferedReader(Vao);
        String nhan = Bvao.readLine();
        System.out.print(nhan);
        if (nhan != null) {
            PrintStream PS = new PrintStream(client.getOutputStream());
            PS.println("Da nhan!");
        }
    }
}
